<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        门禁设备信息添加
    </title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <script th:src="@{/layui/layui.js}"></script>
    <script th:src="@{/js/jquery-1.12.4.js}"></script>
    <script th:src="@{/js/access/add.js}"></script>
</head>
<body>

<form class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label">负责人(*)</label>
        <div class="layui-input-block">
            <input style="width: 300px;margin-top: 20px" type="text" id="principle" required lay-verify="required"
                   placeholder="请输入负责人" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">供货商(*)</label>
        <div class="layui-input-block">
            <input style="width: 300px;margin-top: 20px" type="text" id="supplier" required lay-verify="required"
                   placeholder="请输入供货商" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">品牌(*)</label>
        <div class="layui-input-block">
            <input style="width: 300px;margin-top: 20px" type="text" id="brand" required lay-verify="required"
                   placeholder="请输入品牌" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item" style="margin-top: 20px">
        <label class="layui-form-label">所属楼宇</label>
        <div class="layui-input-block" style="width: 300px;margin-top: 20px">
            <select class="form-control" id="buiding">
                <option value="0">请选择</option>
                <option th:each="building:${buidingList}" th:text="${building.getName()}"
                        th:value="${building.getId()}">
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">安装日期</label>
        <div class="layui-input-block">
            <input style="width: 300px;margin-top: 20px" type="text" id="time" readonly="readonly"
                   class="layui-input">
        </div>

        <div class="layui-form-item" style="margin-top: 20px">
            <div class="layui-input-block">
                <button class="layui-btn" type="button" id="add">添加</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </div>
</form>
</body>
</html>
</body>
</html>